/****************************************************************************
** Meta object code from reading C++ file 'myserial.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.14.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../../bootloader_app/myserial.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'myserial.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.14.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_mySerial_t {
    QByteArrayData data[16];
    char stringdata0[171];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_mySerial_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_mySerial_t qt_meta_stringdata_mySerial = {
    {
QT_MOC_LITERAL(0, 0, 8), // "mySerial"
QT_MOC_LITERAL(1, 9, 9), // "portAdded"
QT_MOC_LITERAL(2, 19, 0), // ""
QT_MOC_LITERAL(3, 20, 8), // "portName"
QT_MOC_LITERAL(4, 29, 11), // "portRemoved"
QT_MOC_LITERAL(5, 41, 16), // "portDisconnectde"
QT_MOC_LITERAL(6, 58, 9), // "portOpend"
QT_MOC_LITERAL(7, 68, 10), // "portClosed"
QT_MOC_LITERAL(8, 79, 11), // "ackReceived"
QT_MOC_LITERAL(9, 91, 8), // "funcCode"
QT_MOC_LITERAL(10, 100, 4), // "data"
QT_MOC_LITERAL(11, 105, 13), // "noAckReceived"
QT_MOC_LITERAL(12, 119, 13), // "checksumError"
QT_MOC_LITERAL(13, 133, 16), // "updateSerialPort"
QT_MOC_LITERAL(14, 150, 10), // "onReadRead"
QT_MOC_LITERAL(15, 161, 9) // "sendFirst"

    },
    "mySerial\0portAdded\0\0portName\0portRemoved\0"
    "portDisconnectde\0portOpend\0portClosed\0"
    "ackReceived\0funcCode\0data\0noAckReceived\0"
    "checksumError\0updateSerialPort\0"
    "onReadRead\0sendFirst"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_mySerial[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       8,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x06 /* Public */,
       4,    1,   72,    2, 0x06 /* Public */,
       5,    0,   75,    2, 0x06 /* Public */,
       6,    1,   76,    2, 0x06 /* Public */,
       7,    1,   79,    2, 0x06 /* Public */,
       8,    2,   82,    2, 0x06 /* Public */,
      11,    1,   87,    2, 0x06 /* Public */,
      12,    1,   90,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    0,   93,    2, 0x08 /* Private */,
      14,    0,   94,    2, 0x08 /* Private */,
      15,    0,   95,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::QString,    3,
    QMetaType::Void, QMetaType::UChar, QMetaType::QByteArray,    9,   10,
    QMetaType::Void, QMetaType::UChar,    9,
    QMetaType::Void, QMetaType::UChar,    9,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void mySerial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<mySerial *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->portAdded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 1: _t->portRemoved((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 2: _t->portDisconnectde(); break;
        case 3: _t->portOpend((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 4: _t->portClosed((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->ackReceived((*reinterpret_cast< quint8(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        case 6: _t->noAckReceived((*reinterpret_cast< quint8(*)>(_a[1]))); break;
        case 7: _t->checksumError((*reinterpret_cast< quint8(*)>(_a[1]))); break;
        case 8: _t->updateSerialPort(); break;
        case 9: _t->onReadRead(); break;
        case 10: _t->sendFirst(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (mySerial::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::portAdded)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::portRemoved)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (mySerial::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::portDisconnectde)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::portOpend)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::portClosed)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(quint8 , const QByteArray & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::ackReceived)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(quint8 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::noAckReceived)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (mySerial::*)(quint8 );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&mySerial::checksumError)) {
                *result = 7;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject mySerial::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_mySerial.data,
    qt_meta_data_mySerial,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *mySerial::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *mySerial::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_mySerial.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int mySerial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void mySerial::portAdded(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void mySerial::portRemoved(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void mySerial::portDisconnectde()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void mySerial::portOpend(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void mySerial::portClosed(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void mySerial::ackReceived(quint8 _t1, const QByteArray & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void mySerial::noAckReceived(quint8 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void mySerial::checksumError(quint8 _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
